package deliciouse.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import deliciouse.entity.Food;

public interface FoodDao {
	List<Food> getAll();
	Food fetchById(int id);
	List<Food> fetchByCondition(
			@Param("cid")int cid, 
			@Param("title")String title, 
			@Param("pageNum")int pageNum, 
			@Param("pageSize")int pageSize);
	int  getAllRows(
			@Param("cid")int cid, 
			@Param("title")String title);
	boolean addfoodlist(Food food);
	boolean updatefoodlist(Food food);
}
